package cn.edu.lcu.cs.javaprogramming.oop.animal;

/**
 * 猴子类
 *
 * 2022/3/2 22:18
 *
 * @Author ling
 */
public class Monkey extends Mammal {

    public Monkey() {
        setSpeciesName("猴子");
    }

    @Override
    public void reproduce() {
        System.out.println("猴子是胎生的");
    }

    public void walk() {
        System.out.println(getSpeciesName() + "两条腿四条腿都会走路");
    }

    public void run() {
        System.out.println(getSpeciesName() + "在平地上跑得也挺快");
    }

    public void climbTree() {
        System.out.println(getSpeciesName() + "爬树666");
    }

    @Override
    public void eat() {
        System.out.println(getSpeciesName() + "喜欢吃水果");
    }

}
